<template>
  <div class="distributionMessage">
    <h3>配送信息</h3>
    <p class="runText">
      <b>{{ shopLis.description }}</b
      >由商家提供配送，约{{ shopLis.deliveryTime }}分钟送达,距离{{
        shopLis.distance
      }}
    </p>
    <p class="runPrice">配送费￥{{ shopLis.deliveryPrice }}</p>
  </div>
</template>
<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState(['shopLis'])
  }
}
</script>

<style lang="less" scoped>
.distributionMessage {
  overflow: hidden;
  height: 100px;
  background-color: #fff;
  border-top: 1px solid #ccc;
  padding: 10px;
  h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 20px 0;
  }
  .runText {
    font-size: 14px;
    color: #999;
    b {
      width: 60px;
      text-align: center;
      border: 1px solid #ccc;
      border-radius: 5px;
      color: #fff;
      background-color: blue;
      padding: 3px;
      font-size: 14px;
      font-weight: 550;
      margin-right: 10px;
      display: inline-block;
    }
  }
  .runPrice {
    color: #999;
    font-size: 15px;
    margin-top: 10px;
  }
}
</style>
